package com.apartmentManage.until;

public class IntUntil {

//    获取数字长度
    public static Integer LengthNum(Integer number){
        Integer count=0; //计数
        while(number>=1) {
            number/=10;
            count++;
        }
        return count;
    }

    public static void main(String[] args) {
        Integer num=1000;
        Integer numVo=num;
        Integer count=0; //计数
        while(num>=1) {
            num/=10;
            count++;
        }
        System.out.println(count);
        int pow = (int) Math.pow(10, count - 1);
        System.out.println(pow);
        numVo=pow*numVo;
        System.out.println(numVo);
        System.out.println(Math.pow(10,count-1));
    }
}
